package sketch.shape.domain.uml;

import java.awt.Graphics2D;

import sketch.shape.domain.DomainShape;
import sketch.shape.geom.Rectangle;

public class UMLInterface extends Rectangle implements DomainShape {

	public void drawComponent(Graphics2D g2) {
		super.drawComponent(g2);
		g2.drawString(getShapeSemantics(), (int)getMinX(), (int)getMinY());
		g2.drawLine((int)(getMinX()), (int)(getMinY() + .5 * getHeight()),
					(int)(getMaxX()), (int)(getMinY() + .5 * getHeight()));
	}

	public String getShapeSemantics() {
		return "UML - Interface";
	}

	public boolean isBox() {
		return true;
	}

	public boolean isFinal() {
		return true;
	}
}
